# Contributor: Lucas Ramage <lucas.ramage@infinite-omicron.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=roswell
pkgver=24.10.115
pkgrel=0
pkgdesc="Common Lisp environment setup Utility"
url="https://roswell.github.io/"
arch="all"
license="MIT"
makedepends="
	autoconf
	automake
	curl-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/roswell/roswell/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no test suite

prepare() {
	default_prepare

	./bootstrap
}

build() {
	local variant="-musl"
	#[ "$CARCH" = "x86" ] && variant="-musl1.1"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-sbcl-bin-variant=$variant
	make
}

package() {
	make DESTDIR="$pkgdir" install

	install -Dvm644 COPYING \
		-t "$pkgdir"/usr/share/licenses/$pkgname/
}

sha512sums="
773be2667291e54d370cd9784dde63b504ef53701595e4279bf43fc4f6907e400eb14a90e0f4e2a63495517d85e1e19ef11e4d15bfe78d77a96cb0337e2c968f  roswell-24.10.115.tar.gz
"
